package com.howj2.springcloud.client;

import com.howj2.springcloud.pojo.Product;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class ProductClientFeignHystrix implements ProductClientFeign {

    @Override
    public List<Product> listProdcuts() {
        List<Product> products = new ArrayList<>();
        products.add(new Product(0,"产品数据微服务不可用",0));
        return products;
    }
}
